SourceForge.net Logo
Result Class Reference

A scoped pointer wrapper for the lazily evaluated query result. More...

#include <Result.hpp>

Public Member Functions

 Result (const Item::Ptr &item)
 
 Result (const Sequence &seq)
 
 Result (ResultImpl *impl)
 
 Result (const Result &o)
 
Result & operator= (const Result &o)
 
 ~Result ()
 
ResultImpl * operator-> ()
 Returns the underlying ResultImpl object.
 
const ResultImpl * operator-> () const
 Returns the underlying ResultImpl object.
 
ResultImpl * get ()
 Returns the underlying ResultImpl object.
 
const ResultImpl * get () const
 Returns the underlying ResultImpl object.
 
bool isNull () const
 Returns true if the underlying pointer is null.
 
EmptyResult * getEmpty () const
 

Detailed Description

A scoped pointer wrapper for the lazily evaluated query result.

Examples
simple-basic.cpp, and simple-context-item.cpp.

Constructor & Destructor Documentation

◆ Result() [1/4]

Result::Result ( const Item::Ptr & item)

◆ Result() [2/4]

Result::Result ( const Sequence & seq)

◆ Result() [3/4]

Result::Result ( ResultImpl * impl)

◆ Result() [4/4]

Result::Result ( const Result & o)

◆ ~Result()

Result::~Result ( )

Member Function Documentation

◆ get() [1/2]

ResultImpl * Result::get ( )
inline

Returns the underlying ResultImpl object.

References getEmpty().

Referenced by operator->(), and operator->().

◆ get() [2/2]

const ResultImpl * Result::get ( ) const
inline

Returns the underlying ResultImpl object.

References getEmpty().

◆ getEmpty()

EmptyResult * Result::getEmpty ( ) const

Referenced by get(), and get().

◆ isNull()

bool Result::isNull ( ) const
inline

Returns true if the underlying pointer is null.

◆ operator->() [1/2]

ResultImpl * Result::operator-> ( )
inline

Returns the underlying ResultImpl object.

References get().

◆ operator->() [2/2]

const ResultImpl * Result::operator-> ( ) const
inline

Returns the underlying ResultImpl object.

References get().

◆ operator=()

Result & Result::operator= ( const Result & o)

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