Inherits ltl::_et_parse_base.
This class represents a literal number in the parse tree of an expression so that expressions can involve literal constants in the usual way.
Like all parse tree elements, this class implements the iterator interface, simply doing nothing for all methods except dereferencing, for which it returns the literal constant it holds.
typedef T ltl::ExprLiteralNode< T >::value_type |
the result data type is the type of the constant
anonymous enum |
anonymous enum |
ltl::ExprLiteralNode< T >::ExprLiteralNode | ( | const T | f | ) | [inline] |
Constructor: store the constant, splat if we are vectorizing.
void ltl::ExprLiteralNode< T >::advance | ( | ) | const [inline] |
Implement the iterator interface: do nothing for advancing.
void ltl::ExprLiteralNode< T >::advanceN | ( | const int | i | ) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceN | ( | const int | i, | |
const int | dim | |||
) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceWithStride1 | ( | ) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceDim | ( | ) | const [inline] |
void ltl::ExprLiteralNode< T >::advanceDim | ( | const int | cutDim | ) | const [inline] |
void ltl::ExprLiteralNode< T >::operator++ | ( | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::operator * | ( | ) | const [inline] |
Evaluate by simply returning the constant.
value_type ltl::ExprLiteralNode< T >::readWithoutStride | ( | const int | i | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readWithStride | ( | const int | i | ) | const [inline] |
value_type ltl::ExprLiteralNode< T >::readWithStride | ( | const int | i, | |
const int | dim | |||
) | const [inline] |
bool ltl::ExprLiteralNode< T >::isStorageContiguous | ( | ) | const [inline] |
always true
bool ltl::ExprLiteralNode< T >::isStride1 | ( | ) | const [inline] |
always true
bool ltl::ExprLiteralNode< T >::isConformable | ( | const Shape< N > & | other | ) | const [inline] |
always true
void ltl::ExprLiteralNode< T >::reset | ( | ) | [inline] |