DCMTK Version 3.7.0
OFFIS DICOM Toolkit
Loading...
Searching...
No Matches
DcmSharedSCPConfig Struct Reference

Enables sharing configurations by multiple DcmSCPs. More...

Inheritance diagram for DcmSharedSCPConfig:

Public Member Functions

 DcmSharedSCPConfig ()
 Default construct a DcmSharedSCPConfig object referring to a default constructed DcmSCPConfig object.
 DcmSharedSCPConfig (const DcmSCPConfig &config)
 Copy construct a DcmSharedSCPConfig object from a DcmSCPConfig object.
DcmSCPConfigoperator-> () const
 Access the shared DcmSCPConfig object.
DcmSCPConfigoperator* () const
 Access the shared DcmSCPConfig object.

Additional Inherited Members

Private Member Functions inherited from OFshared_ptr< DcmSCPConfig >
 OFshared_ptr (DcmSCPConfig *const pt=OFnullptr)
 Constructs a shared_ptr with pt as the managed object.
OFshared_ptroperator= (const OFshared_ptr &other)
 Replaces the managed object with the one managed by other.
 ~OFshared_ptr ()
 If *this owns an object and it is the last shared_ptr owning it, the object is destroyed.
 operator OFBool () const
 Checks if *this manages an object, i.e.
OFBool operator! () const
 Checks if *this does not manage an object, i.e.
DcmSCPConfigoperator* () const
 Dereferences pointer to the managed object.
DcmSCPConfigoperator-> () const
 Dereferences pointer to the managed object.
DcmSCPConfigget () const
 Returns a pointer to the managed object.
void reset (DcmSCPConfig *const pt=OFnullptr)
 Replaces the managed object with an object pointed to by pt.

Detailed Description

Enables sharing configurations by multiple DcmSCPs.

DcmSharedSCPConfig allows multiple DcmSCP objects to share a single DcmSCPConfig object as their configuration. DcmSharedSCPConfig is implemented using reference counting, so the underlying DcmSCP config object is destroyed only after the last reference to it is removed.

Constructor & Destructor Documentation

◆ DcmSharedSCPConfig()

DcmSharedSCPConfig::DcmSharedSCPConfig ( const DcmSCPConfig & config)
inlineexplicit

Copy construct a DcmSharedSCPConfig object from a DcmSCPConfig object.

This constructor enables sharing of an already existing DcmSCPConfig object by copy constructing a shareable configuration object from it.

Parameters
configthe DcmSCPConfig object to copy construct the DcmSharedSCPConfig object from.

References OFshared_ptr< DcmSCPConfig >::OFshared_ptr().

Member Function Documentation

◆ operator*()

DcmSCPConfig & DcmSharedSCPConfig::operator* ( ) const
inline

Access the shared DcmSCPConfig object.

Returns
a reference to the shared DcmSCPConfig object.

References OFshared_ptr< DcmSCPConfig >::get().

◆ operator->()

DcmSCPConfig * DcmSharedSCPConfig::operator-> ( ) const
inline

Access the shared DcmSCPConfig object.

Returns
a pointer to the shared DcmSCPConfig object.

References OFshared_ptr< DcmSCPConfig >::get().


The documentation for this struct was generated from the following file:


Generated on for DCMTK Version 3.7.0 by Doxygen 1.15.0