/dports/math/curv/curv-0.5/libcurv/ |
H A D | symbol.h | 16 struct Symbol_Ref; 55 inline Symbol_Ref() in Symbol_Ref() function 61 inline Symbol_Ref& operator=(Symbol_Ref a2) 76 int cmp(Symbol_Ref a) const noexcept in cmp() argument 80 friend bool operator==(Symbol_Ref a1, Symbol_Ref a2) noexcept 88 friend bool operator!=(Symbol_Ref a1, Symbol_Ref a2) noexcept 92 friend bool operator<(Symbol_Ref a1, Symbol_Ref a2) noexcept 104 friend void swap(Symbol_Ref& a1, Symbol_Ref& a2) noexcept in swap() argument 115 Symbol_Ref make_symbol(const char* s); 124 Symbol_Ref maybe_symbol(Value); [all …]
|
H A D | symbol.cc | 24 Symbol_Ref 30 Symbol_Ref make_symbol(const char* s) in make_symbol() 45 bool Symbol_Ref::is_identifier() const in is_identifier() 52 Symbol_Ref token_to_symbol(Range<const char*> str) in token_to_symbol() 74 Symbol_Ref value_to_symbol(Value val, const Context& cx) in value_to_symbol() 76 static Symbol_Ref true_sym = make_symbol("true"); in value_to_symbol() 77 static Symbol_Ref false_sym = make_symbol("false"); in value_to_symbol() 85 Symbol_Ref maybe_symbol(Value val) in maybe_symbol() 87 static Symbol_Ref true_sym = make_symbol("true"); in maybe_symbol() 88 static Symbol_Ref false_sym = make_symbol("false"); in maybe_symbol() [all …]
|
H A D | record.h | 28 virtual Value find_field(Symbol_Ref, const Context&) const = 0; 31 Value getfield(Symbol_Ref, const Context&) const; 34 virtual bool hasfield(Symbol_Ref) const = 0; 47 virtual Value* ref_field(Symbol_Ref, bool need_value, const Context&) = 0; 58 Symbol_Ref key_{}; 64 Symbol_Ref key() { return key_; } in key() 75 std::pair<Symbol_Ref, Value> value_to_variant(Value, const Context& cx); 100 virtual Value find_field(Symbol_Ref, const Context&) const override; 101 virtual bool hasfield(Symbol_Ref) const override; 104 virtual Value* ref_field(Symbol_Ref, bool need_value, const Context&) [all …]
|
H A D | record.cc | 13 Record::getfield(Symbol_Ref field, const Context& cx) const in getfield() 40 const Context& cx, std::function<void(Symbol_Ref,Value)> visitor) const in each_field() argument 58 std::pair<Symbol_Ref, Value> 63 return std::pair<Symbol_Ref,Value>{sym, missing}; in value_to_variant() 68 return std::pair<Symbol_Ref,Value>{i->key(), i->value(cx)}; in value_to_variant() 88 DRecord::find_field(Symbol_Ref name, const Context& cx) const in find_field() 97 DRecord::hasfield(Symbol_Ref name) const in hasfield() 110 DRecord::ref_field(Symbol_Ref name, bool need_value, const Context& cx) in ref_field() 124 arec->each_field(cx, [&](Symbol_Ref id, Value val) -> void { in update_drecord()
|
H A D | gpu_program.cc | 29 static Symbol_Ref is_2d_key = make_symbol("is_2d"); in recognize() 30 static Symbol_Ref is_3d_key = make_symbol("is_3d"); in recognize() 31 static Symbol_Ref bbox_key = make_symbol("bbox"); in recognize() 32 static Symbol_Ref shader_key = make_symbol("shader"); in recognize() 33 static Symbol_Ref parameters_key = make_symbol("parameters"); in recognize() 34 static Symbol_Ref name_key = make_symbol("name"); in recognize() 35 static Symbol_Ref value_key = make_symbol("value"); in recognize() 36 static Symbol_Ref label_key = make_symbol("label"); in recognize() 37 static Symbol_Ref config_key = make_symbol("config"); in recognize()
|
H A D | shape.cc | 57 static Symbol_Ref is_2d_key = make_symbol("is_2d"); in recognize() 58 static Symbol_Ref is_3d_key = make_symbol("is_3d"); in recognize() 59 static Symbol_Ref bbox_key = make_symbol("bbox"); in recognize() 60 static Symbol_Ref dist_key = make_symbol("dist"); in recognize() 61 static Symbol_Ref colour_key = make_symbol("colour"); in recognize() 62 static Symbol_Ref render_key = make_symbol("render"); in recognize() 118 static Symbol_Ref dist_key = make_symbol("dist"); in Shape_Program() 119 static Symbol_Ref colour_key = make_symbol("colour"); in Shape_Program()
|
H A D | module.h | 77 std::pair<Symbol_Ref,Value> operator*() 99 virtual Value find_field(Symbol_Ref, const Context&) const override; 100 virtual bool hasfield(Symbol_Ref) const override; 103 virtual Value* ref_field(Symbol_Ref, bool need_value, const Context&) override; 131 key_ = Symbol_Ref(); in next()
|
H A D | dir_record.h | 30 virtual Value find_field(Symbol_Ref, const Context&) const override; 31 virtual bool hasfield(Symbol_Ref) const override; 34 virtual Value* ref_field(Symbol_Ref, bool need_value, const Context&)
|
H A D | module.cc | 45 Module_Base::find_field(Symbol_Ref name, const Context& cx) const in find_field() 54 Module_Base::hasfield(Symbol_Ref name) const in hasfield() 67 Module_Base::ref_field(Symbol_Ref name, bool need_value, const Context& cx) in ref_field()
|
H A D | viewed_shape.cc | 61 static Symbol_Ref argument_key = make_symbol("argument"); in Viewed_Shape() 62 static Symbol_Ref call_key = make_symbol("call"); in Viewed_Shape() 63 static Symbol_Ref picker_key = make_symbol("picker"); in Viewed_Shape() 77 [&](Symbol_Ref name, Value pred, Value value, in Viewed_Shape()
|
H A D | dir_record.cc | 91 Value Dir_Record::find_field(Symbol_Ref sym, const Context& cx) const in find_field() 102 bool Dir_Record::hasfield(Symbol_Ref sym) const in hasfield() 119 Dir_Record::ref_field(Symbol_Ref name, bool need_value, const Context& cx) in ref_field() 171 key_ = Symbol_Ref(); in next()
|
H A D | picker.h | 61 Symbol_Ref name_; 64 Uniform_Variable(Symbol_Ref name, std::string id, SC_Type,
|
H A D | function.h | 30 Symbol_Ref name_{}; 32 Function(slot_t nslots, Symbol_Ref name) in Function() 137 Partial_Application_Base(unsigned nargs, Symbol_Ref name, in Partial_Application_Base() 181 Symbol_Ref name_{};
|
H A D | evaluator.cc | 54 Operation::Action_Executor::push_field(Symbol_Ref, Value, const Context& cstmt) in push_field() argument 66 Symbol_Ref name, Value elem, const Context& cstmt) in push_field() 77 Symbol_Ref name = value_to_symbol(pair->at(0), cstmt); in push_value() 132 Value record_at(Value rec, Symbol_Ref id, const Context& cx) in record_at() 149 Symbol_Ref id = selector_.eval(fm); in eval() 320 static Symbol_Ref callkey = make_symbol("call"); in call_func() 368 static Symbol_Ref callkey = make_symbol("call"); in tail_call_func() 804 Symbol_Ref 882 defl_->each_field(acx, [&](Symbol_Ref id, Value val) -> void { in call() 920 rec->each_field(cxbody, [&](Symbol_Ref id, Value val) -> void { in eval() [all …]
|
H A D | meaning.h | 126 virtual void push_field(Symbol_Ref, Value, const Context&) = 0; 133 virtual void push_field(Symbol_Ref, Value, const Context&) override; 141 virtual void push_field(Symbol_Ref, Value, const Context&) override; 149 virtual void push_field(Symbol_Ref, Value, const Context&) override; 227 Symbol_Ref name_; 809 Symbol_Ref name_{}; // may be set by Function_Definition::analyse 876 Symbol_Ref eval_symbol(Frame&) const; 894 Symbol_Ref eval(Frame&) const;
|
H A D | pattern.cc | 164 static Symbol_Ref callkey = make_symbol("call"); in match() 351 record->each_field(valcx, [&](Symbol_Ref name, Value val)->void { in exec() 401 record->each_field(cx, [&](Symbol_Ref name, Value val)->void { in try_exec() 445 Symbol_Ref 569 Symbol_Ref name = symbolize(*bin->left_, env); in make_pattern() 635 std::function<void(Symbol_Ref, Value, Value, Shared<const Phrase>)> f) in record_pattern_each_parameter() argument
|
H A D | value.h | 17 struct Symbol_Ref; 364 Value at(Symbol_Ref fieldname, const Context& cx) const;
|
H A D | pattern.h | 46 std::function<void(Symbol_Ref, Value, Value, Shared<const Phrase>)>);
|
H A D | definition.h | 194 Symbol_Ref, const Phrase&, unsigned unit); 256 Symbol_Ref, const Phrase&, unsigned unit) override;
|
H A D | definition.cc | 108 record->each_field(cx, [&](Symbol_Ref name, Value value)->void { in add_to_scope() 191 Scope::add_binding(Symbol_Ref name, const Phrase& unitsrc, unsigned unitno) in add_binding() 223 Symbol_Ref name, const Phrase& unitsrc, unsigned unitno) in add_binding()
|
/dports/math/curv/curv-0.5/tests/ |
H A D | string.cc | 27 Symbol_Ref a0 = make_symbol("foo"); in TEST() 31 Symbol_Ref a1 = make_symbol("foo"); in TEST() 33 Symbol_Ref a2 = make_symbol("bar"); in TEST() 39 Symbol_Ref anull; in TEST()
|
/dports/math/curv/curv-0.5/curv/ |
H A D | config.h | 17 curv::Symbol_Ref branchname) in Config() 28 curv::Symbol_Ref branchname_; 31 Config get_config(curv::System&, curv::Symbol_Ref);
|
H A D | repl.cc | 160 static Symbol_Ref lastval_key = make_symbol("_"); in set_last_value() 164 void define(Symbol_Ref name, Value val) in define() 369 void push_field(Symbol_Ref name, Value val, const Context&) in push_field()
|
H A D | config.cc | 62 get_config(System& sys, Symbol_Ref branchname) in get_config()
|
/dports/math/curv/curv-0.5/ideas/render/ |
H A D | Libcurv | 7 Symbol_Ref name; 14 Symbol_Ref name; 27 Symbol_Ref name; 58 There are multiple methods for getting/setting fields: each takes a Symbol_Ref
|