input
stringlengths
10
828
output
stringlengths
5
107
public rt string variable string str value this m string str value end rt string variable string str value
creates a string initialized to a copy of the given string
public void update rt types rt type string node update type rt node p rt update root node todo end update
update node contents
public void set value int n row index int n column index float f value this m f values n row index 4 n column index f value end set value int n row index int n column index float f value
set value br
public string get value return this m string end get value
retrieve the contents of the string
public void set value string str value this m string str value end set value
specifies new contents for the string node
public void set values float f matrix if f matrix length this m f values length for int i 0 i f matrix length i this m f values i f matrix i end set values float f matrix
set values br
public void set node type child rule list linked list rt node type child rule struct p rm string variable child rule list if this m p rm string variable child rule list null p rm string variable child rule list null this m p rm string variable child rule list p rm string variable child rule list end set node type child rule list linked list rt node type child rule struct p rm node child rule list
sets the node child rule list for the given node
public int get num elements return this m f values length end get num elements
get number of elements br
public void set node type child rule list linked list rt node type child rule struct p rm matrix variable child rule list if this m p rm matrix variable child rule list null p rm matrix variable child rule list null this m p rm matrix variable child rule list p rm matrix variable child rule list end set node type child rule list linked list rt node type child rule struct p rm matrix variable child rule list
sets the node child rule list for the given node
public boolean is node valid todo return false
is node valid
public boolean is node valid return this m p light reference null super is node valid false end is node valid
is node valid
public void delete light reference todo end delete light reference
delete light reference br
public rt texture get texture return null end get texture
get texture br
public rt light reference light reference return this m p light reference end light reference
get light reference
public boolean is high level rm shader itself is always an assembly shader return false
is high level
protected void set type string str new type todo rm variable set type rm string t rm string t t rm texture variable rm string t str new type end set type
set node type
public void set node type child rule list linked list rt node type child rule struct p rm light object child rule list if this m p rm light object child rule list null p rm light object child rule list null this m p rm light object child rule list p rm light object child rule list end set node type child rule list linked list rt node type child rule struct p rm node child rule list
sets the node child rule list for the given node
public void set node type child rule list linked list rt node type child rule struct p rm texture variable child rule list if this m p rm texture variable child rule list null p rm texture variable child rule list null this m p rm texture variable child rule list p rm texture variable child rule list end set node type child rule list linked list rt node type child rule struct p rm texture variable child rule list
sets the node child rule list for the given node
public void delete constant int n register todo est ce que c est bien ca qu il faut faire this m constant list remove n register end delete constant int n register
delete shader constant
public long get data type return this m ul data type end get data type
get data type
public void delete all constants this m constant list clear end delete all constants
delete alll constants
public void set data type long ul type this m ul data type ul type end set data type long ul type
set data type
public long get usage return this m ul usage end get usage
get usage br
public long get usage index return this m ul usage index end get usage index
get usage index br
public void set usage index long ul usage index this m ul usage index ul usage index end set usage index long ul usage index
get usage index
public string get usage string return this m str usage end get usage string
get usage string
public rt stream get parent stream return rt stream this get parent
get parent stream
public void set node type child rule list linked list rt node type child rule struct p rm stream channel child rule list if this m p rm stream channel child rule list null p rm stream channel child rule list null this m p rm stream channel child rule list p rm stream channel child rule list end set node type child rule list linked list rt node type child rule struct p rm node child rule list
sets the node child rule list for the given node
public int get num constants return this m constant list size end get num constants
get number of constants
public int get num channels return this m channel list size end get num channels
get num channels
public void delete all channels todo v rifier si rien d autre faire this m channel list clear end delete all channels
delete all channels
public string get shader code return this m str code end get shader code
get shader code
public int get max aluinstructions return this m n max aluinstructions end get max instruction
get max instruction info
public rt stream map get parent stream map return rt stream map this get parent end get parent stream map
parent stream map
public int get max tex instructions return this m n max tex instructions end get max tex instructions
get max instruction info
public void remove node type child rule rt types rt type string p str node type todo enlever la regle verifier la validit du noeud end remove node type child rule rt types rt type string p str node type
remove node type rules
public void set node type child rule list linked list rt node type child rule struct p rm stream child rule list if this m p rm stream child rule list null p rm stream child rule list null this m p rm stream child rule list p rm stream child rule list end set node type child rule list linked list rt node type child rule struct p rm node child rule list
sets the node child rule list for the given node
public void set max instruction info int n max aluinstructions int n max tex instructions this m n max aluinstructions n max aluinstructions this m n max tex instructions n max tex instructions end set max instruction info int n max aluinstructions int n max tex instructions
set max instruction info
public long get state type return this m ul state end get state type
get state type
public string get full name todo return new string end get full name
get full name
public string get usage return this m str usage end get usage
get usage string
public string get full name with api todo return new string end get full name with api
get fulll name with api
public void set usage string p str usage this m str usage p str usage end set usage string p str usage
set usage string
public void set node type child rule list linked list rt node type child rule struct p rm state child rule list if this m p rm state child rule list null p rm state child rule list null this m p rm state child rule list p rm state child rule list end set node type child rule list linked list rt node type child rule struct p rm state child rule list
sets the node child rule list for the given node
public string get description return this m str description end get description
description of the node
public int get element count todo return 0 end get element count
get element counts
public void set modified boolean b modified this m b modified b modified end set modified boolean b modified
set modify flag
public string get data type return this m str constant type end get data type
get data type
public rt node get parameter node return this m p node end get parameter node
get parameter node
public boolean is pixel shader return this m b pixel shader true end is pixel shader
is pixel shader
public void link to parameter node rt node p node todo end link to parameter node rt node p node
link to node
public void set description string p str description this m str description p str description end set description string p str descrtiption
description of the node
public boolean is vertex shader return this m b pixel shader false end is vertex shader
is vertex shader
public void set node type child rule list linked list rt node type child rule struct p rm shader constant child rule list if this m p rm shader constant child rule list null p rm shader constant child rule list null this m p rm shader constant child rule list p rm shader constant child rule list end set node type child rule list linked list rt node type child rule struct m p rm shader constant child rule list
sets the node child rule list for the given node
public string get str node type chain return this p str node type chain type end get str node type chain
accessor onto the reference to the type chain of the node
public int get min num children return this n min num children end get min num children
accessor onto the minimum number of children for a node
public void set is pixel shader boolean b pixel shader this m b pixel shader b pixel shader end set is pixel shader boolean b pixel shader
set is pixel shader
public int get max num children return this n max num children end get max num children
accessor onto the maximum number of children for a node
public void set str node type chain rt types rt type string str node type chain this p str node type chain str node type chain end set str node type chain
accessor onto the reference to the type chain of the node
public boolean set min num children int n min children if n min children this n max num children this n min num children this n max num children return false else this n min num children n min children return true end set min num children
mutator onto the minimum number of children for a node
public boolean set max num children int n max children if n max children this n min num children this n max num children this n min num children return false else this n max num children n max children return true end set max num children
mutator onto the maximum number of children for a node
public string get type return this m str type type get type
type string of the node
protected void set type string str new type todo rm node set type rm string t rm string t t rm shader rm string t str new type end set type
set node type
public void set node type child rule list linked list rt node type child rule struct p rm shader child rule list if this m p rm shader child rule list null p rm shader child rule list null this m p rm shader child rule list p rm shader child rule list end set node type child rule list linked list rt node type child rule struct p rm shader child rule list
sets the node child rule list for the given node
public string get type chain return this m str type chain end get type chain
chained type string
public boolean is kind of rt types rt type string p str type todo return false end is kind of rt types rt type string p str type
check if node is a given type
public string get name return this m str name end get name
name of node
public void set name string str new name todo mettre jour le name chain des fils et du noeud courant end set name string str new name
set nodes name
public string get api return this m str api type end get api
returns api for this node
public int get num children return this m children list size end get num children
number of children
public boolean is node valid return null m p material node rm node is node valid false return this m p material node null super is node valid false end is node valid
is node valid
public void set node type child rule list linked list rt node type child rule struct p rm material reference child rule list if this m p rm material reference child rule list null p rm material reference child rule list null this m p rm material reference child rule list p rm material reference child rule list end set node type child rule list linked list rt node type child rule struct p rm node child rule list
sets the node child rule list for the given node
public boolean add texture reference rt texture reference p texture ref todo return false end add texture reference rt texture reference p texture ref
add texture reference
public void delete texture reference todo end delete texture reference
delete texture reference
public boolean is node valid return this m p light node null super is node valid false end is node valid
is node valid
public rt texture reference get texture reference return this m p texture ref end get texture reference
get texture reference
public rt node get texture object return this m p texture object end get texture object
get texture object
public rt state find texture stage state long ul type todo return new rt state end find texture stage state long ul type
find texture stage state
public void set node type child rule list linked list rt node type child rule struct p rm light reference child rule list if this m p rm light reference child rule list null p rm light reference child rule list null this m p rm light reference child rule list p rm light reference child rule list end set node type child rule list linked list rt node type child rule struct p rm node child rule list
sets the node child rule list for the given node
public boolean add texture state rt state p texture state todo v rifier si rien d autre faire return this m texture stage states add p texture state end add texture state rt state p texture state
add texture stage state br
public void delete texture stage state long ul type todo end delete texture stage state long ul type
delete texture stage stage
public void test finalize throws exception system out println finalize rt node instance new rt node todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of finalize method of class org
public void test get description system out println get description rt node instance new rt node string exp result string result instance get description assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of get description method of class org
public rt state find sampler state long ul type todo return new rt state end find sampler state long ul type
find sample state br
public void delete all children this m children list clear system gc end delete all children
delete all children under this node
public void test set descrpition system out println set descrpition string p str description rt node instance new rt node instance set descrpition p str description todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of set descrpition method of class org
public boolean add sampler state rt state p sampler state todo v rifier si rien d autre faire return this m sampler states add p sampler state end add sampler state rt state p sampler state
add sampler state
public void test get type system out println get type rt node instance new rt node rt node rt type string exp result null rt node rt type string result instance get type assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of get type method of class org
public void delete sampler state long ul type todo end delete sampler state long ul type
delete sampler state
public int get stage index return this m n stage index end get stage index
get stage index
public void test get type chain system out println get type chain rt node instance new rt node rt node rt type string exp result null rt node rt type string result instance get type chain assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of get type chain method of class org
public void set stage index int n index this m n stage index n index end set stage index int n index
set stage index
public void test is kind of system out println is kind of string p str type rt node instance new rt node boolean exp result true boolean result instance is kind of p str type assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of is kind of method of class org
public list iterator begin texture stage states return this m texture stage states list iterator 0 return m texture stage states begin end begin texture stage states
begin iterator for texture stage
public void test get name system out println get name rt node instance new rt node string exp result string result instance get name assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of get name method of class org
public list iterator end texture stage states return this m texture stage states list iterator this m texture stage states size end end texture stage states
end iterator for texture stage
public list iterator begin sampler states return this m sampler states list iterator 0 return m sampler states begin end begin texture stage states
begin iterator for sampler stage
public void test get name chain system out println get name chain rt node instance new rt node string exp result string result instance get name chain assert equals exp result result todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of get name chain method of class org
public list iterator end sampler states return this m sampler states list iterator this m sampler states size return m sampler states end end end texture stage states
end iterator for sampler stage
public void test set name system out println set name string str new name rt node instance new rt node instance set name str new name todo review the generated test code and remove the default call to fail fail the test case is a prototype
test of set name method of class org