|
| CRef (void) THROWS_NONE |
| Constructor for null pointer. More...
|
|
| CRef (ENull) THROWS_NONE |
| Constructor for ENull pointer. More...
|
|
| CRef (TObjectType *ptr) |
| Constructor for explicit type conversion from pointer to object. More...
|
|
| CRef (TObjectType *ptr, const locker_type &locker_value) |
| Constructor for explicit type conversion from pointer to object. More...
|
|
| CRef (const TThisType &ref) |
| Copy constructor from an existing CRef object. More...
|
|
template<class TDerived , class = typename enable_if_derived<TDerived>::type> |
| CRef (const CRef< TDerived, Locker > &ref) |
| Copy constructor from an existing CRef object of derived type. More...
|
|
| CRef (TThisType &&ref) |
| Move constructor from an existing CRef object. More...
|
|
template<class TDerived , class = typename enable_if_derived<TDerived>::type> |
| CRef (CRef< TDerived, Locker > &&ref) |
| Move constructor from an existing CRef object of derived type. More...
|
|
| ~CRef (void) |
| Destructor. More...
|
|
const locker_type & | GetLocker (void) const |
| Get reference to locker object. More...
|
|
bool | operator! (void) const THROWS_NONE |
| Check if CRef is empty – not pointing to any object, which means having a null value. More...
|
|
bool | Empty (void) const THROWS_NONE |
| Check if CRef is empty – not pointing to any object, which means having a null value. More...
|
|
bool | NotEmpty (void) const THROWS_NONE |
| Check if CRef is not empty – pointing to an object and has a non-null value. More...
|
|
bool | IsNull (void) const THROWS_NONE |
| Check if pointer is null – same effect as Empty(). More...
|
|
bool | NotNull (void) const THROWS_NONE |
| Check if pointer is not null – same effect as NotEmpty(). More...
|
|
void | Swap (TThisType &ref) |
| Swaps the pointer with another reference. More...
|
|
void | Reset (void) |
| Reset reference object. More...
|
|
void | Reset (TObjectType *newPtr) |
| Reset reference object to new pointer. More...
|
|
TObjectType * | ReleaseOrNull (void) |
| Release a reference to the object and return a pointer to the object. More...
|
|
TObjectType * | Release (void) |
| Release a reference to the object and return a pointer to the object. More...
|
|
void | AtomicResetFrom (const TThisType &ref) |
| Reset reference object to new pointer. More...
|
|
void | AtomicReleaseTo (TThisType &ref) |
| Release referenced object to another CRef<> object. More...
|
|
TThisType & | operator= (const TThisType &ref) |
| Assignment operator for references. More...
|
|
template<class TDerived , class = typename enable_if_derived<TDerived>::type> |
TThisType & | operator= (const CRef< TDerived, Locker > &ref) |
| Assignment operator for references of derived types. More...
|
|
TThisType & | operator= (TThisType &&ref) |
| Move assignment operator for references. More...
|
|
template<class TDerived , class = typename enable_if_derived<TDerived>::type> |
TThisType & | operator= (CRef< TDerived, Locker > &&ref) |
| Move assignment operator for references of derived types. More...
|
|
TThisType & | operator= (TObjectType *ptr) |
| Assignment operator for references with right hand side set to a pointer. More...
|
|
TThisType & | operator= (ENull) |
| Assignment operator with right hand side set to ENull. More...
|
|
TObjectType * | GetNonNullPointer (void) |
| Get pointer value and throw a null pointer exception if pointer is null. More...
|
|
TObjectType * | GetPointerOrNull (void) THROWS_NONE |
| Get pointer value. More...
|
|
TObjectType * | GetPointer (void) THROWS_NONE |
| Get pointer,. More...
|
|
TObjectType & | GetObject (void) |
| Get object. More...
|
|
TObjectType & | operator* (void) |
| Dereference operator returning object. More...
|
|
TObjectType * | operator-> (void) |
| Reference operator. More...
|
|
const TObjectType * | GetNonNullPointer (void) const |
| Get pointer value and throw a null pointer exception if pointer is null – constant version. More...
|
|
const TObjectType * | GetPointerOrNull (void) const THROWS_NONE |
| Get pointer value – constant version. More...
|
|
const TObjectType * | GetPointer (void) const THROWS_NONE |
| Get pointer – constant version,. More...
|
|
const TObjectType & | GetObject (void) const |
| Get object – constant version. More...
|
|
const TObjectType & | operator* (void) const |
| Dereference operator returning object – constant version. More...
|
|
const TObjectType * | operator-> (void) const |
| Reference operator – constant version. More...
|
|
| operator TObjectType * (void) |
| Dereference operator returning pointer. More...
|
|
| operator const TObjectType * (void) const |
| Dereference operator returning pointer – constant version. More...
|
|
TObjectType * | GetNonNullNCPointer (void) const |
| Get pointer value and throw a null pointer exception if pointer is null. More...
|
|
TObjectType * | GetNCPointerOrNull (void) const THROWS_NONE |
| Get pointer value. More...
|
|
TObjectType * | GetNCPointer (void) const THROWS_NONE |
| Get pointer,. More...
|
|
TObjectType & | GetNCObject (void) const |
| Get object. More...
|
|
template<class C, class Locker>
class CRef< C, Locker >
CRef –.
Define a template class that stores a pointer to an object and defines methods for referencing that object.
Definition at line 618 of file ncbiobj.hpp.