4.2.1. Functors. Functors are software objects that
encapsulate arbitrary functions. A functor’s clients need
know only 1) its domain and range, and 2) how to ask it
to compute its value given a value in that domain. In this
manner, the specific function embedded in the functor
(say, a linear curve, piecewise-linear envelope, or sine
wave) is hidden.
Figure 4. A modular architecture for realizing rhythm
Figure 3. Temporal mapping realizing dilation
Path
Functor
("where")
Temporal
Functor
("when")
Parameter
Selection
("what")
x
time
t
Apply
to Visual
Object(s)
0
0.2
0.4
0.6
0.8
1
5 6 7 8 9 10
More specifically, a class of functors is represented at
the lowest level by a trivial interface with a single method
to evaluate the underlying function. An example appears
in Figure 5, roughly in C++ syntax. The functor shown
embodies a 1-dimensional path, since it maps the real
numbers onto the real numbers.
 
Results (
Thai) 3:
[Copy]Copied!
 
4.2.1 . functors . functors ซอฟต์แวร์วัตถุที่ 
 encapsulate ฟังก์ชันโดยพลการ ลูกค้าของฟังก์เตอร์ต้องการ 
 รู้เพียง 1 ) ของโดเมนและเรนจ์ และ 2 ) วิธีการถาม 
 คำนวณค่าของมันได้รับค่าโดเมน . ในลักษณะนี้ 
 , ฟังก์ชั่นที่เฉพาะเจาะจงที่ฝังตัวในฟังก์เตอร์ 
 ( พูด , เส้นโค้ง , ซอง , เชิงเส้นเป็นช่วงหรือคลื่นไซน์ 
 
 ) ถูกซ่อนอยู่ รูปที่ 4สถาปัตยกรรมแบบโมดูลาร์และเมื่อจังหวะ 
 รูปที่ 3 แผนที่เส้นทาง 
 
 และตระหนักถึงการขยายฟังก์เตอร์ 
 
 เวลา ( " " ) ( " เมื่อ " ฟังก์เตอร์ 
 
 ) 
 
 
 เลือกพารามิเตอร์ ( " " ) 
 x 
 เวลา 
 T 
 < Z1 , . . . , สังกะสี > 
 
 
 ใช้กับภาพวัตถุ ( s ) 
 0 
 
 0 0.2 
 
 0.6 0.8 
 1 
 5 6 7 8 9 10 
 มากขึ้นโดยเฉพาะชั้นของ functors เป็นผู้แทนในระดับต่ำสุด โดยอินเตอร์เฟซ 
 
 ไร้สาระด้วยวิธีเดียวประเมินต้นแบบฟังก์ชัน ตัวอย่างปรากฏ 
 ในรูปที่ 5 ประมาณ C วากยสัมพันธ์ ฟังก์เตอร์แสดง 
 4 เส้นทาง 1-dimensional เพราะแผนที่มันจำนวนจริง 
 บนจำนวนจริง
Being translated, please wait..
