A single precision doubleing point node field value.
More...
#include <openvrml/field_value.h>
List of all members.
Detailed Description
A single precision doubleing point node field value.
- Model of
- Field Value
Member Typedef Documentation
Constructor & Destructor Documentation
openvrml::sfdouble::sfdouble |
( |
double |
value = 0.0 | ) |
throw () [explicit] |
openvrml::sfdouble::sfdouble |
( |
const sfdouble & |
sfd | ) |
|
Construct a copy.
- Parameters:
-
[in] | sfd | the instance to copy. |
openvrml::sfdouble::~sfdouble |
( |
| ) |
throw () [virtual] |
Member Function Documentation
Assign.
- Parameters:
-
[in] | sfd | the value to assign. |
- Returns:
- a reference to the instance.
- Exceptions:
-
std::bad_alloc | if memory allocation fails. |
void openvrml::sfdouble::value |
( |
const value_type & |
val | ) |
throw ( std::bad_alloc ) |
Mutate.
- Parameters:
-
- Exceptions:
-
std::bad_alloc | if memory allocation fails. |
void openvrml::sfdouble::swap |
( |
sfdouble & |
sfd | ) |
throw () |
Swap.
- Parameters:
-
[in,out] | sfd | the value to swap with this one. |
std::auto_ptr< openvrml::field_value > openvrml::sfdouble::do_clone |
( |
| ) |
const throw ( std::bad_alloc ) [private, virtual] |
Polymorphically construct a copy.
- Returns:
- a pointer to a copy of the object.
- Exceptions:
-
std::bad_alloc | if memory allocation fails. |
Implements openvrml::field_value.
Virtual assignment.
- Parameters:
-
[in] | value | the new value to give the object. |
- Returns:
- a reference to the object.
- Exceptions:
-
std::bad_cast | if value is not an sfdouble. |
Implements openvrml::field_value.
void openvrml::sfdouble::print |
( |
std::ostream & |
out | ) |
const [private, virtual] |
Friends And Related Function Documentation
bool operator== |
( |
const sfdouble & |
lhs, |
|
|
const sfdouble & |
rhs |
|
) |
| throw() [related] |
Compare for equality.
- Parameters:
-
[in] | lhs | left-hand operand. |
[in] | rhs | right-hand operand. |
- Returns:
true
if lhs
and rhs
have the same value; false
otherwise.
bool operator!= |
( |
const sfdouble & |
lhs, |
|
|
const sfdouble & |
rhs |
|
) |
| throw() [related] |
Compare for inequality.
- Parameters:
-
[in] | lhs | left-hand operand. |
[in] | rhs | right-hand operand. |
- Returns:
true
if lhs
and rhs
do not have the same value; false
otherwise.
Swap the values of a
and b
.
Does not throw.
- Parameters:
-
Member Data Documentation