Seg3D  2.4
Seg3D is a free volume segmentation and processing tool developed by the NIH Center for Integrative Biomedical Computing at the University of Utah Scientific Computing and Imaging (SCI) Institute.
All Classes Namespaces Functions Variables Typedefs Enumerator Friends
Public Types | Public Member Functions | List of all members
Core::Variant Class Reference
Inheritance diagram for Core::Variant:
Core::VariantBase

Public Types

typedef boost::shared_ptr< VariantHandle
 

Public Member Functions

template<class T >
 Variant (const T &default_value)
 
 Variant (const Variant &variant)
 
Variantoperator= (Variant &variant)
 
template<class T >
void set (const T &value)
 Set the value using a typed version of the parameter.
 
template<class T >
bool get (T &value)
 
template<class T >
bool validate_type ()
 
virtual const std::type_info & internal_type () const
 
virtual std::string export_to_string () const
 export the contents of the parameter to string
 
virtual bool import_from_string (const std::string &str)
 

Member Function Documentation

template<class T >
bool Core::Variant::get ( T &  value)
inline

Get the value from string or typed value. If a typed one is available use that one.

bool Core::Variant::import_from_string ( const std::string &  str)
virtual

import a parameter from a string. The function returns true if the import succeeded

Implements Core::VariantBase.

virtual const std::type_info& Core::Variant::internal_type ( ) const
inlinevirtual

Return a const reference to the type_info object representing the actual type of value currently stored by the Variant object.

Implements Core::VariantBase.

template<class T >
bool Core::Variant::validate_type ( )
inline

Check and convert to a certain type, but do not return the value This function is intended for validating the action by forcing the contained value to be converted to a certain type


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