Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::attributes::cast_source Class Reference

The class holds a reference to the attribute factory implementation being casted. More...

#include <attribute_cast.hpp>

Public Member Functions

 cast_source (attribute::impl *p)
 Initializing constructor. More...
 
template<typename T >
Tas () const
 The function attempts to cast the aggregated pointer to the implementation to the specified type. More...
 

Detailed Description

The class holds a reference to the attribute factory implementation being casted.

Constructor & Destructor Documentation

boost::attributes::cast_source::cast_source ( attribute::impl p)
inlineexplicit

Initializing constructor.

Creates a source that refers to the specified factory implementation.

Member Function Documentation

template<typename T >
T* boost::attributes::cast_source::as ( ) const
inline

The function attempts to cast the aggregated pointer to the implementation to the specified type.

Returns
The converted pointer or NULL, if the conversion fails.

References T.


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