Nana C++ Library. Reference for users.
What we need to use nana
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
nana::concepts::any_objective< IndexType, 1 > Class Template Referenceabstract

The Any Objective is an object that may attach to some other object. More...

Public Types

typedef IndexType anyobj_index_t
 The type of index. It is available if Dimension is greater than 0. More...
 

Public Member Functions

virtual ~any_objective ()=default
 
template<typename Target >
void anyobj (anyobj_index_t i, const Target &t)
 
template<typename Target >
void anyobj (anyobj_index_t i, Target &&t)
 
template<typename Target >
Target * anyobj (anyobj_index_t i) const
 < Retrieves the attached object. Returns a nullptr if empty or if the type not match. More...
 

Detailed Description

template<typename IndexType>
class nana::concepts::any_objective< IndexType, 1 >

The Any Objective is an object that may attach to some other object.

Member Typedef Documentation

template<typename IndexType >
typedef IndexType nana::concepts::any_objective< IndexType, 1 >::anyobj_index_t

The type of index. It is available if Dimension is greater than 0.

Constructor & Destructor Documentation

template<typename IndexType >
virtual nana::concepts::any_objective< IndexType, 1 >::~any_objective ( )
virtualdefault

Member Function Documentation

template<typename IndexType >
template<typename Target >
void nana::concepts::any_objective< IndexType, 1 >::anyobj ( anyobj_index_t  i,
const Target &  t 
)
inline
template<typename IndexType >
template<typename Target >
void nana::concepts::any_objective< IndexType, 1 >::anyobj ( anyobj_index_t  i,
Target &&  t 
)
inline
template<typename IndexType >
template<typename Target >
Target* nana::concepts::any_objective< IndexType, 1 >::anyobj ( anyobj_index_t  i) const
inline

< Retrieves the attached object. Returns a nullptr if empty or if the type not match.