|
| | LogicContextGpu (double value, LogicMode mode, LogicOperator operator_type, std::span< bool > history, double threshold, bool edge_detected, EdgeType edge_type, const std::vector< double > &inputs, std::span< const float > gpu_data) |
| |
| | LogicContext (double value, LogicMode mode, LogicOperator operator_type, std::span< bool > history, double threshold, bool edge_detected=false, EdgeType edge_type=EdgeType::BOTH, const std::vector< double > &inputs={}) |
| | Constructs a LogicContext with complete state information.
|
| |
| LogicMode | get_mode () const |
| |
| LogicOperator | get_operator () const |
| |
| std::span< bool > | get_history () const |
| |
| double | get_threshold () const |
| |
| bool | is_edge_detected () const |
| |
| EdgeType | get_edge_type () const |
| |
| const std::vector< double > & | get_inputs () const |
| |
| const double & | get_value () const |
| |
| bool | as_bool () const |
| |
| virtual | ~NodeContext ()=default |
| |
| template<typename T > |
| T * | as () |
| | Safely cast to a derived context type.
|
| |
| | GpuVectorData ()=default |
| |
| | GpuVectorData (std::span< const float > data) |
| |
| std::span< const float > | gpu_data () const |
| |
| size_t | gpu_data_size () const |
| |
| bool | has_gpu_data () const |
| |
GPU-accelerated context for logic node callbacks.
Definition at line 123 of file Logic.hpp.