Horizon Official Technical Documentation
Horizon::System::ContextWithResult< T > Class Template Reference

#include <System.hpp>

Public Member Functions

 ContextWithResult ()
 
 ContextWithResult (T result)
 
 ContextWithResult (std::vector< T > result_vector)
 
 ContextWithResult (const ContextWithResult &other)
 
ContextWithResultoperator= (const ContextWithResult &other)
 
virtual T get_one ()
 
virtual void set_one (T result)
 
virtual bool has_many ()
 
virtual std::vector< T > get_many ()
 
virtual void set_many (std::vector< T > result_vector)
 

Protected Attributes

_result
 
std::vector< T > _result_vector
 

Constructor & Destructor Documentation

◆ ContextWithResult() [1/4]

template<typename T = int>
Horizon::System::ContextWithResult< T >::ContextWithResult ( )
inline
344{ }

◆ ContextWithResult() [2/4]

template<typename T = int>
Horizon::System::ContextWithResult< T >::ContextWithResult ( result)
inline
345: _result(result) { }
T _result
Definition: System.hpp:370

◆ ContextWithResult() [3/4]

template<typename T = int>
Horizon::System::ContextWithResult< T >::ContextWithResult ( std::vector< T >  result_vector)
inline
346: _result_vector(result_vector) { }
std::vector< T > _result_vector
Definition: System.hpp:371

◆ ContextWithResult() [4/4]

template<typename T = int>
Horizon::System::ContextWithResult< T >::ContextWithResult ( const ContextWithResult< T > &  other)
inline
349 {
350 _result = other._result;
351 _result_vector = other._result_vector;
352 }

References Horizon::System::ContextWithResult< T >::_result, and Horizon::System::ContextWithResult< T >::_result_vector.

Member Function Documentation

◆ get_many()

template<typename T = int>
virtual std::vector< T > Horizon::System::ContextWithResult< T >::get_many ( )
inlinevirtual

◆ get_one()

template<typename T = int>
virtual T Horizon::System::ContextWithResult< T >::get_one ( )
inlinevirtual
362{ return _result; }

References Horizon::System::ContextWithResult< T >::_result.

Referenced by TestWork::has_result(), and TestWorkWithUseResult::has_result().

+ Here is the caller graph for this function:

◆ has_many()

template<typename T = int>
virtual bool Horizon::System::ContextWithResult< T >::has_many ( )
inlinevirtual

◆ operator=()

template<typename T = int>
ContextWithResult & Horizon::System::ContextWithResult< T >::operator= ( const ContextWithResult< T > &  other)
inline
355 {
356 if (this != &other) {
357 _result = other._result;
358 _result_vector = other._result_vector;
359 }
360 return *this;
361 }

References Horizon::System::ContextWithResult< T >::_result, and Horizon::System::ContextWithResult< T >::_result_vector.

◆ set_many()

template<typename T = int>
virtual void Horizon::System::ContextWithResult< T >::set_many ( std::vector< T >  result_vector)
inlinevirtual

◆ set_one()

template<typename T = int>
virtual void Horizon::System::ContextWithResult< T >::set_one ( result)
inlinevirtual

Member Data Documentation

◆ _result

◆ _result_vector


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