CoreComponents 3.0.0
A Modern C++ Toolkit
Loading...
Searching...
No Matches
Object::State Class Reference

Reference counted object state. More...

#include <Object>

Inheritance diagram for Object::State:

Public Member Functions

 State ()=default
 Default constructor.
 
 State (const State &)
 Copy constructor.
 
virtual ~State ()
 Virtual destructor.
 
long useCount () const
 Reference count.
 
const Stateoperator= (const State &) const
 
template<class T >
bool is () const
 Check if this state is of type T.
 
template<class T >
T & as ()
 Statically cast this state to a different type T.
 
template<class T >
const T & as () const
 Statically cast this state to a different type T.
 

Detailed Description

Reference counted object state.

Constructor & Destructor Documentation

◆ State() [1/2]

State ( )
default

Default constructor.

◆ State() [2/2]

State ( const State & )

Copy constructor.

◆ ~State()

virtual ~State ( )
virtual

Virtual destructor.

Reimplemented in View::State.

Member Function Documentation

◆ useCount()

long useCount ( ) const

Reference count.

◆ is()

template<class T >
bool is ( ) const

Check if this state is of type T.

◆ as() [1/2]

template<class T >
T & as ( )

Statically cast this state to a different type T.

◆ as() [2/2]

template<class T >
const T & as ( ) const

Statically cast this state to a different type T.