Savarese Software Research Corporation
NumberVisitor.h File Reference

This header defines the NumberVisitor class. More...

Include dependency graph for NumberVisitor.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NumberVisitor< T >
 NumberVisitor extracts numerical values from a Properties instance, cast to the desired numerical type. More...

Functions

template<typename T , typename V >
const T get_number (const V &variant, const T &default_value=T())
template<typename T >
const T get_number (const Properties &properties, const T &default_value=T())
template<typename T , typename... P>
const T get_number (const Properties &properties, const T &default_value, const P &...p)

Detailed Description

This header defines the NumberVisitor class.

Definition in file NumberVisitor.h.


Function Documentation

template<typename T , typename V >
const T get_number ( const V &  variant,
const T &  default_value = T() 
)

Definition at line 78 of file NumberVisitor.h.

References NumberVisitor< T >::get().

Referenced by get_number().

template<typename T >
const T get_number ( const Properties properties,
const T &  default_value = T() 
)
template<typename T , typename... P>
const T get_number ( const Properties properties,
const T &  default_value,
const P &...  p 
)

Definition at line 96 of file NumberVisitor.h.

References PropTree< Key, Ops, TreeType >::find(), and get_number().


Savarese Software Research Corporation
Copyright © 2006-2011 Savarese Software Research Corporation. All rights reserved.